#include <iostream>
#include "Stack.h"
#include "Queue.h"
#include "priority_queue.h"


void MyStacktest()
{
	WX::MyStack<int> s1;

	s1.push(1);
	s1.push(2);
	s1.push(3);
	s1.push(4);

	while (!s1.empty())
	{
		cout << s1.top() << " ";
		s1.pop();
	}  
	cout << endl;
}

void MyQueuetest()
{
	WX::MyQueue<int> q1;
	q1.push(1);
	q1.push(2);
	q1.push(3);
	q1.push(4);
	q1.push(5);
	while (!q1.empty())
	{
		cout << q1.front() << " ";
		q1.pop();
	}
	cout << endl;
}

void Mypriority_queue()
{
	WX::Mypriority_queue<int> h1;
	h1.push(1);
	h1.push(2);
	h1.push(3);
	h1.push(4);
	h1.push(5);
	while (!h1.empty())
	{
		cout << h1.top() << " ";
		h1.pop();
	}
	cout << endl;
}


//int main()
//{
//	//MyStacktest();
//	//MyQueuetest();
//	Mypriority_queue();
//
//	return 0;
//}

